package com.starsea.book.ui.newpage.adapter

import android.content.Context
import android.view.ViewGroup
import com.starsea.book.base.adapter.ItemViewHolder
import com.starsea.book.base.adapter.RecyclerAdapter
import com.starsea.book.databinding.ItemSignReadTimeBinding
import com.starsea.book.ui.newpage.entity.AwardInfo
import com.starsea.book.ui.widget.recycler.ItemTouchCallback

class SignReadTimeAdapter(
    context: Context
) :
    RecyclerAdapter<AwardInfo, ItemSignReadTimeBinding>(context),
    ItemTouchCallback.Callback {


    override fun getViewBinding(parent: ViewGroup): ItemSignReadTimeBinding {
        return ItemSignReadTimeBinding.inflate(inflater, parent, false)
    }

    override fun registerListener(holder: ItemViewHolder, binding: ItemSignReadTimeBinding) {

    }

    override fun convert(
        holder: ItemViewHolder,
        binding: ItemSignReadTimeBinding,
        item: AwardInfo,
        payloads: MutableList<Any>
    ) {

        binding.run {
            tvTime.text = "${item.time}分钟"
        }


    }


}